package me.softwareengineer.guice.rendering.domain;

import java.util.Map;

import me.softwareengineer.guice.rendering.listener.Listener;
import me.softwareengineer.guice.rendering.listener.OnHorizontalLineEvent;

/**
 * Represents a Horizontal line.
 * 
 * @author yadtahir
 * 
 *         <pre>
 * This class is thread-safe and can be cached/re-used and used concurrently.
 * </pre>
 */
public class HorizontalLineElement extends Element {

	/**
	 * Create a horizontal line element without properties
	 */
	public HorizontalLineElement() {

	}

	/**
	 * Create a horizontal line block with the provided properties
	 * 
	 * @param properties
	 *            the properties of the element. For more info, check
	 *            {@link HasProperties}
	 */
	public HorizontalLineElement(Map<String, String> properties) {
		super(properties);
	}

	@Override
	public void render(Listener listener) {
		OnHorizontalLineEvent e = new OnHorizontalLineEvent();
		listener.onEvent(e);
	}
}
